package com.mdd.service.order;

import com.alipay.api.AlipayApiException;
import com.alipay.api.AlipayClient;
import com.alipay.api.response.AlipayTradeOrderinfoSyncResponse;
import com.mdd.validate.order.TradeOrderInfo;

/**
 * 支付履约订单信息同步
 * <p>
 * {@code @Description}
 * @Author 幻速
 * {@code @Date} 2023/10/30 19:39
 **/
public interface TradeOrderInfoService {
    /**
     * 用于上报该订单履约情况
     * 该接口用于商户向支付宝同步该笔订单相关业务信息
     * @param tradeOrderInfo 订单信息
     * @return AlipayTradeOrderinfoSyncResponse
     */
    AlipayTradeOrderinfoSyncResponse orderInfoSync(AlipayClient alipayClient, TradeOrderInfo tradeOrderInfo) throws AlipayApiException;
}
